<template>
  <div class="box">
    <div class="hot" v-for="(list, index) in lists" :key="index">
      <h3>·{{ list.type }}·</h3>
      <div class="info">
        <img :src="list.img" alt="" />
        <p>累计销售{{ list.count }}件</p>
      </div>
    </div>
  </div>
</template>

<script>
import { getBangdan } from "network/home";
export default {
  name: "",
  data() {
    return {
      lists: [],
    };
  },
  created() {
    getBangdan().then((res) => {
      this.lists = res;
    });
  },
};
</script>
<style scoped>
.box {
  width: 345px;
  height: 121px;
  margin: auto;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  /* border: 1px solid red; */
}
.hot {
  width: 106px;
  height: 121px;
  text-align: center;
}
.info {
  width: 104px;
  height: 94px;
  border-left: 1px solid gray;
  border-right: 1px solid gray;
  border-bottom: 1px solid gray;
}
.hot h3 {
  height: 27px;
  background-color: #444444;
  color: #f0f0f0;
  font-size: 12px;
  line-height: 27px;
}
.hot img {
  height: 58px;
  margin-top: 10px;
}
.hot p {
  font-size: 10px;
  color: #b3b3b3;
}
</style>